<?php

	include "conn.php";
	
	function updateData($pdotest, $sql) {
		$stmt = $pdotest->prepare($sql);
		$stmt->execute();
	}
	
	$score = $_GET['score'];
	$id = $_GET['id'];
	$sql = "update user set score=$score where id=$id";
	updateData($pdotest, $sql);

?>